//
//  Util.m
//  One
//
//  Created by mac on 16-5-20.
//  Copyright (c) 2016年 mac. All rights reserved.
//

#import "Util.h"

@implementation Util

+ (float)getTextHeightWithText:(NSString *)textString withSize:(CGSize)size font:(UIFont *)font
{
    CGRect rect = [textString boundingRectWithSize:CGSizeMake(size.width, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:font} context:nil];
    
    return rect.size.height + 10;
    
    Font(1);
}

@end
